import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class PersonalPage extends StatefulWidget {
  const PersonalPage({super.key});

  @override
  _PersonalState createState() => _PersonalState();
}

class _PersonalState extends State<PersonalPage> {
  void printout(){
    print("头像按钮");
  }

  @override
  Widget build(BuildContext context) {
    return Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            GestureDetector(
              onTap: printout,
              child: CircleAvatar(
                  radius: 70,
                  child: ClipOval(child:
                  Image(
                    image: AssetImage("assets/images/volume.png"),
                    height: 140,
                    width: 140,
                    colorBlendMode: BlendMode.color,
                    color: Theme.of(context).primaryColor,
                  ),
                  )
              ),
            ),
            Divider(
              color: Colors.white10,
              height: 20,
            ),
            Text("点击头像注册/登录"),
          ],
        )
    );
  }
}



